<?= doctype(); ?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
<head>
	<title><?= WEBSITE_TITLE ?> - <?= $context['page_title'] ?></title>
	<script type="text/javascript">var BASE_URL = '<?= site_url() ?>';</script>
	<?php
		$meta = array(
			array('name' => 'Content-type', 'content' => 'text/html; charset=UTF-8', 'type' => 'equiv'),
			array('name' => 'robots', 'content' => 'index, follow'),
			array('name' => 'description', 'content' => 'Site internet de la licence MIAGE par apprentissage de Paris Descartes. Informations et inscriptions disponibles en ligne.'),
			array('name' => 'keywords', 'content' => 'paris descartes, apprentissage, MIAGE, paris, licence, informatique, système d\'information, gestion, IUT'),
			array('name' => 'google-site-verification', 'content' => '4PLz-O5Q3yLKYgrXwR1YAwH5ug7okTCs4A6f4-XhViE')
		);
		echo meta($meta)

			.link_tag('css/public.css')
			.link_tag('css/common.css')
			.link_tag('images/paris_descartes_fav.png', 'shortcut icon', 'image/ico')
			.link_tag(POSTS_RSS_FEED, 'alternate', 'application/rss+xml', 'Licence MIAGE Paris Descartes - Actualités')

			.js_src('jquery/jquery-1.5.1.min.js')
			.js_src('jquery/jquery.formToWizard.js')
			.js_src('public/application.js');
			/* .js_src('public/analytics.js') */ // only for prod
	?>
</head>
<body>
<div id="global">
	<?php $this->load->view('public/_partials/public_header'); ?>
	<div id="navigation">
		<div>
			<?php
			$first = true;
			foreach ($menu_header as $item) {
				if ($item->is_first_level) {
					if (!$first) { ?>
							</div>
						</div>
						<?php
					} ?>
					<div class="menu-separator"></div>
					<div class="menu-item <?php if (uri_string() == '/'.$this->MenuItem->get_link($item)) echo 'active'; ?>">
						<?= $this->MenuItem->build_anchor($item) ?>
						<div class="submenu-item">
					<?php
				}
				else {
					echo $this->MenuItem->build_anchor($item);
				}
				$first = false;
			}
			?>
				</div>
			</div>
			<div class="menu-separator"></div>
		</div>
	</div>
	<div class="clear shadow_separator"></div>

	<div id="main">
		<?php $this->load->view($context['view_path']); ?>
	</div>

	<?php $this->load->view('public/_partials/public_footer'); ?>
</div>
</body>
</html>
